package com.training.oo.date;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateTimeFormatDemo {
	public static void main(String[] args) {
		DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM-dd");
		LocalDate date = LocalDate.parse("2022/03-08",dtf);
		
		System.out.println(date);
		System.out.println(dtf.format(date));
	}
}
